﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;

namespace VRacer.Connection
{
    /// <summary>
    /// Dostarcza interfejs do obslugi polacznie TCP. Umozliwia pobranie stanu, a takze wystartowanie/zatrzymanie polaczenia.
    /// </summary>
    public abstract class ConnectionBase
    {
        /// <summary>
        /// Gets or sets a value indicating whether this instance is active.
        /// </summary>
        /// <value><c>true</c> if this instance is active; otherwise, <c>false</c>.</value>
        public abstract bool IsActive
        { get; set; }

        /// <summary>
        /// Activate this instance.
        /// </summary>
        public abstract void Connect();

        /// <summary>
        /// Deactivate this instance.
        /// </summary>
        public abstract void Disconnect();

    }
}
